package com.hulk.dryad.web.oauth2.base.annotation;

import com.hulk.dryad.web.oauth2.base.component.DryadSecurityBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @author hulk
 * @date 2019/11/10
 * <p>
 * 资源服务注解
 */
@Documented
@Inherited
@Target({ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Import({DryadSecurityBeanDefinitionRegistrar.class })
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true, proxyTargetClass = true)
public @interface EnableDryadResourceServer {

}
